<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017-03-07
 * Time: 14:02
 */

namespace app\index\controller;


use think\Controller;
use think\Session;
use think\Request;
class BaseController extends Controller
{
    public function __construct()
    {
        parent::__construct();
        $this->isLogin();


    }

    private function isLogin(){
        $user = Session::get('user');
        if($user === NULL){
            $this->redirect('index/Login/index');
        }else{
            return ;
        }
    }


}